package com.example.util;

/**
 * @author 季鑫利
 * @description 状态码枚举类
 */
public enum ResultCodeEM {
    OK("成功", 200),
    ERROR("失败", 500),
    NOCONTENT("无内容", 204);

    private String msg;
    private Integer code;

    ResultCodeEM(String msg, Integer code) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
